package seace.controller;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ControleDeConexao {
	
	static final String SERVER = "192.168.5.105";
	//static final String DATABASE = "seminarioestagio";
	static final String DATABASE = "seace";
	
	//static final String USER = "seminarioestagio";
	static final String USER = "seace";
	
	static final String PASSWORD = "gx0x0";
	
	
	public static Connection getConnection() throws SQLException {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			Connection conn = DriverManager.getConnection("jdbc:"
					+ "mysql://"+ SERVER +"/"+DATABASE, USER, PASSWORD);
			return conn;
		} catch (ClassNotFoundException e) {
			throw new SQLException(e.getMessage());
		}
	}

}
